package com.sneakxy.cloudbase.platform.repository;

import org.apache.ibatis.annotations.Delete;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.sneakxy.cloudbase.platform.bean.LauncherSetting;
import com.sneakxy.cloudbase.platform.bean.LauncherSettingId;

/**
 * 
 * @author 潜行的青衣
 * @see
 */
@Repository
public interface LauncherSettingRepository extends BaseRepository<LauncherSetting, LauncherSettingId> {

	@Delete("delete from t_mb4j_l_setting where lid=#{lid}")
	public long deleteByLid(@Param("lid") String lid);
	
	@Delete("delete from ${tableName} where account_id=#{accountId}")
	public long deleteByAccountId(@Param("accountId") String accountId, @Param("tableName") String tableName);
	
}
